<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<div class="mailbox row">
	<div class="col-xs-6">
		<div class="box box-solid">
			<div class="box-body">
				<div class="row">
					<div class="col-md-12">
						<div class="table-responsive">
							<!-- THE MESSAGES -->
							<table class="table table-mailbox">
								<tr>
									<th>申请人</th><th>公告标题</th><th>最后修改时间</th>
								</tr>
								<c:forEach var="a" items="${announcements}">
									<tr>
										<td class="name">${a.creator.name}</td>
										<td class="subject"><a href="${initParam.root}/announcement/makeApprove?announcementId=${a.id}">${a.title}</a></td>
										<td class="time"><fmt:formatDate value="${a.lastEditTime}" pattern="yyyy-MM-dd HH:mm"/></td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<!-- /.table-responsive -->
					</div>
					
				</div>
				<!-- /.row -->
			</div>
			<!-- /.box-body -->
			<div class="box-footer clearfix">
				<div class="pull-right">
					<small>显示<span>第${pageNum}页</span>共${totalPage}页</small>
					<c:if test="${pageNum>1}">
						<a href="${initParam.root}/announcement/approve?pageNum=${pageNum-1}">
							<button class="btn btn-xs btn-primary">
								<i class="fa fa-caret-left"></i>
							</button>
						</a>
					</c:if>
					<c:if test="${pageNum==1}">
						<button class="btn btn-xs btn-primary">
							<i class="fa fa-caret-left"></i>
						</button>
					</c:if>
					<c:if test="${pageNum<totalPage}">
						<a href="${initParam.root}/announcement/approve?pageNum=${pageNum+1}">
							<button class="btn btn-xs btn-primary">
								<i class="fa fa-caret-right"></i>
							</button>
						</a>
					</c:if>
					<c:if test="${pageNum==totalPage}">
						<button class="btn btn-xs btn-primary">
							<i class="fa fa-caret-right"></i>
						</button>
					</c:if>
				</div>
			</div>
			<!-- box-footer -->
		</div>
		<!-- /.box -->
	</div>
	<!-- /.col (MAIN) -->
</div>
<!-- MAILBOX END -->